<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="pojo.*,dao.*,Service.*,Servlet.*,java.util.*"%>

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
</head>
<body style="border-top: 2px">
<form method="post" action="" id="listform">
	<div class="panel admin-panel">
   <div class="panel-head"><strong class="icon-reorder">论文成果</strong></div>
   <div class="padding border-bottom">
      <ul class="search" style="padding-left:10px;">
        <li> <a class="button border-main icon-plus-square-o" href="lunwen.jsp"> 新增论文</a> </li>
        <if condition="$iscid eq 1">
        </if>
       
      </ul>
    </div>
    <table class="table table-hover text-center" >
    
      <tr>
        <th>序号</th>
        <th>论文题目</th>
        <th>刊目类型</th>
       <th>发表刊目/论文集</th>
        <th>发表/出版时间</th>
        <th>第一作者</th>
        <th>论文类型</th>
		<th>所属单位</th>
		<th>贡献率</th>
		<th>操作</th>
      </tr>
      <volist name="list" id="vo">
      <%
		PageBean<Paper> pb = (PageBean<Paper>)(request.getAttribute("pb"));
		List<Paper> List=pb.getList();
	%>
	<%
for(Paper p:List){
%>
        <tr>
       	  <td><%=p.getId() %></td>
          <td><%=p.getTitle() %></td>
          <td><a href="##"><font color="#00CC99"><%=p.getType() %></font></a></td>
          <td><%=p.getPublications() %></td>
          <td><%=p.getTime() %></td>
          <td><%=p.getAuthor() %></td>
          <td><%=p.getPapertitle() %></td>
		  <td><%=p.getUnit() %></td>
		  <td><%=p.getRate() %></td>
		  <td><a href="<%=request.getContextPath()%>/PaperServlet?method=up&id=<%=p.getId()%>">修改</a></td>
           </tr>
           <%} %>
           <td colspan="8">
        	<div class="pagelist"> 
        	<%int CPage= pb.currentPage;%>
        	<a href="<%=request.getContextPath()%>/ProjectServlet?method=showAll&pageSize=5&currentPage=<%=CPage-1%>">上一页</a> 
        	<%int maxPage= pb.totalPage;%>
        	<%
			for(int i=1;i<=maxPage;i++){
			%>
        	<a href="<%=request.getContextPath()%>/ProjectServlet?method=showAll&pageSize=5&currentPage=<%=i%>">
			<%=i%></a>
        	<%}%>
        	<a href="<%=request.getContextPath()%>/ProjectServlet?method=showAll&pageSize=5&currentPage=<%=CPage+1%>">下一页</a>
        	<a href="<%=request.getContextPath()%>/ProjectServlet?method=showAll&pageSize=5&currentPage=<%=maxPage%>">尾页</a> 
        	</div>
        </td>
   		 <!-- <tr>
          <td>A0001</td>
          <td><a href="ProjectDetail.html">地形探测</a></td>
          <td>张三</td>
            <td>2016-07-01</td>
            <td></td>
          <td>立项审核</td>
        
         <tr>
          <td>A0001</td>
          <td><a href="ProjectDetail.html">地形探测</a></td>
          <td>张三</td>
          <td>2016-07-01</td>
          <td></td>
          <td>立项通过</td>
         
         <tr>
          <td>A0001</td>
          <td><a href="ProjectDetail.html">地形探测</a></td>
          <td>张三</td>
          <td>2016-07-01</td>
          <td></td>
          <td>中期检查</td>
      
         <tr>
          <td>A0001</td>
          <td><a href="ProjectDetail.html">地形探测</a></td>
          <td>张三</td>
          <td>2016-07-01</td>
          <td></td>
          <td>中期审核</td>
          
         <tr>
          <td>A0001</td>
          <td><a href="ProjectDetail.html">地形探测</a></td>
          <td>张三</td>
          <td>2016-07-01</td>
          <td></td>
          <td>中期通过</td>
          <tr>
          	<tr>
          <td>A0001</td>
          <td><a href="ProjectDetail.html">地形探测</a></td>
          <td>张三</td>
               <td>2016-07-01</td>
               <td></td>
          <td>结题审核</td>
     
           </tr>
           
           <tr>
          <td>A0001</td>
          <td><a href="ProjectDetail.html">地形探测</a></td>
          <td>张三</td>
               <td>2016-07-01</td>
               <td>2016-07-01</td>
          <td>结题通过</td>
          </tr>
        </td>
      </tr>
      <tr>
        <td colspan="8"><div class="pagelist"> <a href="">上一页</a> <span class="current">1</span><a href="">2</a><a href="">3</a><a href="">下一页</a><a href="">尾页</a> </div></td>
      </tr> -->
    </table>
   </div>
   </div>
  </div>
</form>
<!-- <script type="text/javascript">

//搜索
function changesearch(){	
		
}

//单个删除
function del(id,mid,iscid){
	if(confirm("您确定要删除吗?")){
		
	}
}

//全选
$("#checkall").click(function(){ 
  $("input[name='id[]']").each(function(){
	  if (this.checked) {
		  this.checked = false;
	  }
	  else {
		  this.checked = true;
	  }
  });
})

//批量删除
function DelSelect(){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){
		var t=confirm("您确认要删除选中的内容吗？");
		if (t==false) return false;		
		$("#listform").submit();		
	}
	else{
		alert("请选择您要删除的内容!");
		return false;
	}
}
</script> -->
</body>
</html>